﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


/**
* @Author: AdinZ
* @Q  Q : 1454269
* @Email:adinz@adinz.com
* @Created: 2014/3/31 16:40:34
*
* */
namespace Novel.Sys.BLL
{
    public class novel_user
    {
        Dal.novel_user dal = new Dal.novel_user();
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public int Add(Model.novel_user model)
        {
            return dal.Add(model);
        }


        /// <summary>
        /// 验证用户名和密码
        /// </summary>
        /// <param name="Name"></param>
        /// <param name="Passwd"></param>
        /// <returns></returns>
        public bool Exists(string Name, string Passwd)
        {
            return dal.Exists(Name, Passwd);
        }
        /// <summary>
        /// 验证用户名
        /// </summary>
        /// <param name="Name"></param>
        /// <returns></returns>
        public bool Exists(string Name)
        {
            return dal.Exists(Name);
        }
        /// <summary>
        /// 得到用户实体
        /// </summary>
        /// <param name="Name"></param>
        /// <returns></returns>
        public Model.novel_user GetModel(string Name)
        {
            return dal.GetModel(Name);
        }
        /// <summary>
        /// 得到用户实体
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        public Model.novel_user GetModel(int ID)
        {
            return dal.GetModel(ID);
        }


        /// <summary>
        /// 更新手机号
        /// </summary>
        /// <param name="ID"></param>
        /// <param name="Phone"></param>
        /// <returns></returns>
        public int UpdatePhone(int ID, string Phone)
        {
            return dal.UpdatePhone(ID, Phone);
        }




    }

}

